<%@ page import="com.suixuan.test.Role" %>



<div class="fieldcontain ${hasErrors(bean: roleInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="role.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${roleInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: roleInstance, field: 'enabled', 'error')} ">
	<label for="enabled">
		<g:message code="role.enabled.label" default="Enabled" />
		
	</label>
	<g:checkBox name="enabled" value="${roleInstance?.enabled}" />
</div>

<div class="fieldcontain ${hasErrors(bean: roleInstance, field: 'urlses', 'error')} ">
	<label for="urlses">
		<g:message code="role.urlses.label" default="Urlses" />
		
	</label>
	<g:select name="urlses" from="${com.suixuan.test.Urls.list()}" multiple="multiple" optionKey="id" size="5" value="${roleInstance?.urlses*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: roleInstance, field: 'users', 'error')} ">
	<label for="users">
		<g:message code="role.users.label" default="Users" />
		
	</label>
	<g:select name="users" from="${com.suixuan.test.User.list()}" multiple="multiple" optionKey="id" size="5" value="${roleInstance?.users*.id}" class="many-to-many"/>
</div>

